package com.fastCms.business.frame.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description 基础公用实体
 * @Param
 * @Return
 * @Date 2019/3/7 上午11:11 lsquan
 */
@Data
public class InitEntity {

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 数据状态：0已删除1.未删除
     */
    @ApiModelProperty(value = "1", name = "数据状态")
    private Integer state = 1;


    public InitEntity(Date createTime, Integer state) {
        this.createTime = createTime;
        this.state = state;
    }


}
